#include<stdio.h>
#include<stdbool.h>
/*bool Match(char exp[], int n)
{
	int i = 0; char e;
	bool match = true;
	LinkStNode* st;
	InitStack(st);
	while (i < n && match)
	{
		if (exp[i] == '(')
			Push(st, exp[i]);
		else if (exp[i] == ')')
		{

		}
	}
}*/

int main()
{
	int max4(int a, int b, int c, int d);
	int a, b, c, d, max;
	printf("Please enter 4 interger numbers: ");
	scanf_s("&d &d &d &d", &a, &b, &c, &d);
	max = max4(a, b, c, d);
	printf("max=%d\n", max);
	return 0;
}
int max2(int a, int b)
{
	if (a >= b)
		return a;
	else
		return b;
}
int max4(int a, int b, int c, int d)
{
	int m;
	m = max2(a, b);
	m = max2(m, c);
	m = max2(m, d);
	return (m);
}